
package com.shop.cereshop.commons.domain.wallet;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 钱包提现记录表
 * </p>
 *
 * @since 2025-08-26
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@TableName("cere_wallet_withdrawal")
@ApiModel(value = "WalletWithdrawal", description = "钱包提现记录表")
@AllArgsConstructor
public class WalletWithdrawal {

    private static final long serialVersionUID = 1L;

    /**
     * 提现ID
     */
    @ApiModelProperty(value = "提现ID")
    @NotNull(message = "提现ID不能为空")
    @TableId(value = "withdrawal_id", type = IdType.AUTO)
    private Long withdrawalId;


    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @NotNull(message = "用户ID不能为空")
    @TableField("buyer_user_id")
    private Long buyerUserId;


    /**
     * 提现单号
     */
    @ApiModelProperty(value = "提现单号")
    @NotEmpty(message = "提现单号不能为空")
    @Length(max = 64, message = "提现单号长度不能超过64")
    @TableField(value = "withdrawal_no", condition = LIKE)
    private String withdrawalNo;


    /**
     * 提现金额
     */
    @ApiModelProperty(value = "提现金额")
    @NotNull(message = "提现金额不能为空")
    @TableField("amount")
    private BigDecimal amount;


    /**
     * 手续费
     */
    @ApiModelProperty(value = "手续费")
    @NotNull(message = "手续费不能为空")
    @TableField("fee")
    private BigDecimal fee;


    /**
     * 实际到账金额
     */
    @ApiModelProperty(value = "实际到账金额")
    @NotNull(message = "实际到账金额不能为空")
    @TableField("actual_amount")
    private BigDecimal actualAmount;


    /**
     * 提现方式 1-微信零钱 2-支付宝余额 3-银行卡
     */
    @ApiModelProperty(value = "提现方式 1-微信零钱 2-支付宝余额 3-银行卡")
    @NotNull(message = "提现方式 1-微信零钱 2-支付宝余额 3-银行卡不能为空")
    @TableField("withdrawal_method")
    private Boolean withdrawalMethod;


    /**
     * 提现状态 0-待审核 1-审核通过 2-审核拒绝 3-提现成功 4-提现失败
     */
    @ApiModelProperty(value = "提现状态 0-待审核 1-审核通过 2-审核拒绝 3-提现成功 4-提现失败")
    @NotNull(message = "提现状态 0-待审核 1-审核通过 2-审核拒绝 3-提现成功 4-提现失败不能为空")
    @TableField("withdrawal_status")
    private Boolean withdrawalStatus;


    /**
     * 银行名称
     */
    @ApiModelProperty(value = "银行名称")
    @Length(max = 50, message = "银行名称长度不能超过50")
    @TableField(value = "bank_name", condition = LIKE)
    private String bankName;


    /**
     * 银行卡号
     */
    @ApiModelProperty(value = "银行卡号")
    @Length(max = 50, message = "银行卡号长度不能超过50")
    @TableField(value = "bank_card", condition = LIKE)
    private String bankCard;


    /**
     * 账户姓名
     */
    @ApiModelProperty(value = "账户姓名")
    @Length(max = 50, message = "账户姓名长度不能超过50")
    @TableField(value = "account_name", condition = LIKE)
    private String accountName;


    /**
     * 申请时间
     */
    @ApiModelProperty(value = "申请时间")
    @NotEmpty(message = "申请时间不能为空")
    @Length(max = 20, message = "申请时间长度不能超过20")
    @TableField(value = "apply_time", condition = LIKE)
    private String applyTime;


    /**
     * 审核时间
     */
    @ApiModelProperty(value = "审核时间")
    @Length(max = 20, message = "审核时间长度不能超过20")
    @TableField(value = "audit_time", condition = LIKE)
    private String auditTime;


    /**
     * 审核人ID
     */
    @ApiModelProperty(value = "审核人ID")
    @TableField("audit_user_id")
    private Long auditUserId;


    /**
     * 审核备注
     */
    @ApiModelProperty(value = "审核备注")
    @Length(max = 255, message = "审核备注长度不能超过255")
    @TableField(value = "audit_remark", condition = LIKE)
    private String auditRemark;


    /**
     * 提现成功时间
     */
    @ApiModelProperty(value = "提现成功时间")
    @Length(max = 20, message = "提现成功时间长度不能超过20")
    @TableField(value = "success_time", condition = LIKE)
    private String successTime;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @NotEmpty(message = "创建时间不能为空")
    @Length(max = 20, message = "创建时间长度不能超过20")
    @TableField(value = "create_time", condition = LIKE)
    private String createTime;


    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @NotEmpty(message = "更新时间不能为空")
    @Length(max = 20, message = "更新时间长度不能超过20")
    @TableField(value = "update_time", condition = LIKE)
    private String updateTime;




}
